/*
 * The I piece.
 */

package tetris.model;

import java.awt.Color;

public class PieceZ extends Piece{
    public PieceZ(){
        super(2, Color.RED);
        buildRotations();
    }

    private void buildRotations(){
        super.rotations[0] = new Rotation(new Coordinates(-1, 1),   // X X
                                          new Coordinates(0, 1),    //   O X
                                          new Coordinates(1, 0));

        super.rotations[1] = new Rotation(new Coordinates(1, 1),    //   X
                                          new Coordinates(1, 0),    // O X
                                          new Coordinates(0, -1));  // X
    }
}
